package com.g5.edu.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 论坛话题信息
 * </p>
 *
 * @author admin
 * @since 2021-10-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("df_forum_info")
public class DfForumInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 话题标题
     */
    @TableField("topic_title")
    private String topicTitle;

    /**
     * 话题内容
     */
    @TableField("topic_content")
    private String topicContent;

    /**
     * 话题图片
     */
    @TableField("image_path")
    private String imagePath;

    /**
     * 回复数
     */
    @TableField("answer_num")
    private Integer answerNum;

    /**
     * 发布用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 发布时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;


}
